import Layout from '@/layout'

const organize = {
  path: '/organize',
  component: Layout,
  redirect: '/organize/store-manage',
  name: 'OrganizeManage',
  meta: { title: '组织管理', icon: 'organize' },
  alwaysShow: true,
  children: [
    {
      path: 'store-manage',
      name: 'StoreManage',
      component: () => import('@/views/organize/store-manage/StoreManage'),
      meta: { title: '门店管理' }
    },
    {
      path: 'store/:type/:name?/:city?/:adress?/:state?/:count?/:id?',
      component: () => import('@/views/organize/store-manage/SotreCreate'),
      name: 'SotreCreate',
      meta: {
        title: '门店',
        noCache: true,
        activeMenu: '/organize/store-manage',
        edit: true
      },
      hidden: true
    },
    {
      path: 'team-manage',
      name: 'TeamManage',
      component: () => import('@/views/organize/team-manage/TeamManage'),
      meta: { title: '团队管理' }
    },
    {
      path: 'team/:type/:name?/:shopId?/:state?/:id?',
      component: () => import('@/views/organize/team-manage/TeamCreate'),
      name: 'TeamCreate',
      meta: {
        title: '团队',
        noCache: true,
        activeMenu: '/organize/team-manage',
        edit: true
      },
      hidden: true
    },
    // {
    //   path: 'post-manage',
    //   name: 'PostManage',
    //   component: () => import('@/views/organize/post-manage/PostManage'),
    //   meta: { title: '岗位管理' }
    // },
    {
      path: 'post/:type/:row?',
      component: () => import('@/views/organize/post-manage/PostCreate'),
      name: 'PostCreate',
      meta: {
        title: '岗位',
        noCache: true,
        activeMenu: '/organize/post-manage',
        edit: true
      },
      hidden: true
    },
    // {
    //   path: 'staff-manage',
    //   name: 'StaffClients',
    //   component: () => import('@/views/organize/staff-manage/StaffManage'),
    //   meta: { title: '员工管理' }
    // },
    {
      path: 'staff/:type/:row?',
      component: () => import('@/views/organize/staff-manage/StaffCreate'),
      name: 'StaffCreate',
      meta: {
        title: '员工',
        noCache: true,
        activeMenu: '/organize/staff-manage',
        edit: true
      },
      hidden: true
    }
  ]
}

export { organize }
